//
//  JSTestObjext.m
//  ZITHER
//
//  Created by weixin on 2018/11/6.
//  Copyright © 2018 weixn. All rights reserved.
//

#import "JSTestObjext.h"

@implementation JSTestObjext

-(NSString *)textFunction{
    NSLog(@" ============ textFunction ===========");
    [Tools showTips:@"h5调用 textFunction方法成功"];
    
    return @"h5调用 textFunction方法成功";
}

-(void)openPhoto:(NSString*)url{
//    [Tools showTips:[NSString stringWithFormat:@"打开图片 ur : %@",url]];
    [self setOppenVideo:url];
}

-(void)openVideo:(NSString*)url{
    [Tools showTips:[NSString stringWithFormat:@"打开视频 ur : %@",url]];
}

-(RACSignal*)getData{
//    [Tools showTips:[NSString stringWithFormat:@"加载结束"]];
    RACSubject *subject = [RACSubject subject];
    [subject sendNext:@"12312"];
    
    [subject sendCompleted];
    return subject;
}


-(RACSignal *)setOppenVideo:(NSString*)url{
    
    RACSubject *subject = [RACSubject subject];

    [subject sendNext:@"12312"];
    
    [subject sendCompleted];
    return subject;
}

-(void)scanQrCode{
    
}
-(void)goNext:(NSString*)title Page:(NSString*)url{
    
}

-(void)scan{
    
}
//-(void)goNextPage:(NSString*)url{
//}
//-(void)goNextPage:(NSString*)title url:(NSString*)url{
//    NSLog(@"");
//}
@end
